package cn.initcap.designpattern.pattern.behavioral.chainofresponsibility;

/**
 * 责任链模式的关键就是，包含自己类型
 *
 * @author initcap
 * @date Created in 2018/11/1 PM10:31.
 */
public abstract class BaseApprover {
    protected BaseApprover baseApprover;

    public void setNextApprover(BaseApprover baseApprover) {
        this.baseApprover = baseApprover;
    }

    /**
     * 部署
     *
     * @param course 课程
     */
    public abstract void deploy(Course course);

}
